import service from '@/utils/crmRequest'

export default () => ({
  // 开发列表
  SUPPLY_CHANNELS_LIST: (data) => {
    return service({
      url: '/api/dev/list',
      method: 'post',
      data
    })
  },

  // 开发列表
  SUPPLY_CHANNELS_DELETE: (id) => {
    return service({
      url: '/api/dev/delete?id=' + id,
      method: 'delete',
    })
  },

  // 正式交易列表
  SUPPLY_CHANNELS_FORMAL_LIST: (data) => {
    return service({
      url: '/api/relationStandard/getRelationList',
      method: 'post',
      data
    })
  },

  // 正式交易详情
  SUPPLY_CHANNELS_FORMAL_DETAIL: (id) => {
    return service({
      url: `/api/relationStandard/getDetail?id=${id}`,
      method: 'get',
    })
  },

  // 正式交易产品聚合
  SUPPLY_CHANNELS_FORMAL_STAN_LIST: (data) => {
    return service({
      url: `/api/relationStandard/product/list-for-stan-list`,
      method: 'post',
      data
    })
  },

  // 开发中产品聚合
  SUPPLY_CHANNELS_FORMAL_DEV_LIST: (data) => {
    return service({
      url: `/api/dev/product/list-for-dev-list`,
      method: 'post',
      data
    })
  },

})

